import request from '@/utils/request'

// 查询员工信息列表
export function listHmzEmployeeInfo(query) {
  return request({
    url: '/system/HmzEmployeeInfo/list',
    method: 'get',
    params: query
  })
}

// 查询员工信息详细
export function getHmzEmployeeInfo(id) {
  return request({
    url: '/system/HmzEmployeeInfo/' + id,
    method: 'get'
  })
}

// 新增员工信息
export function addHmzEmployeeInfo(data) {
  return request({
    url: '/system/HmzEmployeeInfo',
    method: 'post',
    data: data
  })
}

// 修改员工信息
export function updateHmzEmployeeInfo(data) {
  return request({
    url: '/system/HmzEmployeeInfo',
    method: 'put',
    data: data
  })
}

// 修改员工挂失状态
export function updateIsLoss(data) {
  return request({
    url: '/system/HmzEmployeeInfo/updateIsLoss',
    method: 'post',
    data: data
  })
}
// 删除员工信息
export function delHmzEmployeeInfo(id) {
  return request({
    url: '/system/HmzEmployeeInfo/' + id,
    method: 'delete'
  })
}
